import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/student/list',
    method: 'get',
    params
  })
}

export function deleteStudentInfoByStudentId(studentid) {
  return request({
    url: `/student/delete/${studentid}`,
    method: 'delete'
  })
}

export function getStudentInfoByStudentId(studentid) {
  return request({
    url: `/student/get/${studentid}`,
    method: 'get'
  })
}

export function updateStudentInfoByStudentId(studentid, data) {
  return request({
    url: `/student/update/${studentid}`,
    method: 'put',
    data
  })
}

export function addNewStudentSimpleInfo(data) {
  return request({
    url: `/student/add`,
    method: 'post',
    data
  })
}
